package com.woniuxy.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Component
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("building")
public class Building {
    @TableId(value = "id",type = IdType.AUTO)//对应表的主键id，设置主键Id自增
    private Integer id;
    private String numbers;
    private String units;
    private String remarks;

}
